{include file="default/base/header" /} 
<form method="post" name="remark_form" id="remark_form" >
    <input type="hidden" value="{$commonids}" name="commonids">
       <br/>
       <br/>
       <br/>
       <br/>
       <br/>
    <table class="ds-default-table nobdb">
        <thead>
           <tr>
               <th colspan="6">基本信息</th>
           </tr>
       </thead>
        <tr>
               <th>商品名称：</th>
               <td>{$goods_list.goods_name}</td>
               <th>商品编码：</th>
               <td>{$goods_list.goods_code}</td>
               <th>商品厂家：</th>
               <td>{$goods_list.goods_factory}</td>
           </tr>
           <tr>
               <th>商品产地：</th>
               <td>{$goods_list.goods_address}</td>
               <th>商品重量(kg)：</th>
               <td>{$goods_list.weight}</td>
               <th>商品包装：</th>
               <td>{$goods_list.packing}</td>
           </tr>
           <tr>
               <th>包装尺寸-长(m)：</th>
               <td>{$goods_list.packing_long}</td>
               <th>包装尺寸-宽(m)：</th>
               <td>{$goods_list.packing_width}</td>
               <th>包装尺寸-高(m)：</th>
               <td>{$goods_list.packing_high}</td>
           </tr>
           <tr>
               <th>包装视频：</th>
               <td>
                <?php if(empty($goods_list['videos'])){  echo '暂无视频'; }else{ ?>
                 <video width="300" height="180" controls>
                   <source src="{$goods_list.videos}" type="video/mp4">
                 </video>
                 <?php }?>
               </td>
               <th>包装说明书：</th>
               <td><?php echo empty($goods_list['files']) ? '暂无' : $goods_list['files'];  ?></td>
               <th></th>
               <td></td>
           </tr>
           <tr>
           <th>商品图片：</th>
               <td>
                 {foreach name="goods_img" item="val" }
                  <img src="{$Think.UPLOAD_SITE_URL}/home/store/goods/{$goods_list.store_id}/{$val.goodsimage_url}" width="120" height="120" />
                  {/foreach}
               </td>
           </tr>

           <thead>
           <tr>
               <th colspan="6">商品信息</th>
           </tr>
         </thead>

            <tr>
                <td><label>商品名及规格值</lab
                    1el></td>
                <td><label>平台分享价（加价）</label></td>
                <td><label>销售区域</label></td>
            </tr>
            <?php foreach($goods_info as $k=>$v){?>
            <tr>
                <td ><?php echo $v['goods_name']; ?></td>
                <td><label><?php echo $v['g_price']; ?></label></td>
                <td ><?php echo $area; ?></td>
            </tr>
            <?php }?>

           
        </table>
</form>
<script>
    $(function() {
        $("#installation_fee_ero_one").hide();
        $("#installation_fee_ero").hide();

        $('input[name="status"]').click(function() {
            if ($(this).val() == 1) {
                $("#installation_fee_ero_one").hide();
                $("#installation_fee_ero").hide();
            } else {
                $("#installation_fee_ero_one").show();
                $("#installation_fee_ero").show();
            }
        });
    });
    //商品设置平台价格
    function goods_setting_price(ids_str) {
      _uri = HOMESITEURL+"/importgoods/set_price?commonid=" + ids_str;
        dsLayerOpen(_uri,'{$Think.lang.store_goods_set_goods_price}','800px','700px');
    }

    // 批量处理
    $('a[id="pi_ids"]').click(function(){
        ids_str = getItems();
        /*alert(ids_str);return false;*/
        if (ids_str) {
            goods_verify(ids_str);
        }
    });

    // 获得选中ID
    function getItems() {
        /* 获取选中的项 */
        var items = '';
        $('.checkitem:checked').each(function () {
            items += this.value + ',';
        });
        if (items != '') {
            items = items.substr(0, (items.length - 1));
        }else{
            layer.alert('{$Think.lang.please_select_input}', {icon: 2})  
        }
        return items;
    }

    // 商品加价页面
    function goods_verify(ids_str) {
        _uri = ADMINSITEURL+"/Product/set_price?commonid=" + ids_str;
        dsLayerOpen(_uri,'{$Think.lang.goods_verify}','800px','700px');
    }



    
</script>